<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<div class="span9 offset3">
		<s:form class="form-inline" action="jobpostings">
			<table>
				<tr>
					<td><input type="text" class="input-large" placeholder="Skill"
						name="skills"></td>
					<td><input type="text" class="input-large"
						placeholder="Company Name" name="company"></td>
					<td><input type="text" class="input-large"
						placeholder="Location" name="location"></td>
					<td valign="top"><button type="submit" class="btn">Search</button></td>
				</tr>
			</table>
		</s:form>
	</div>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<s:if test="jobpostings.size()!=0">
					<font size="5"><b>Job Postings</b></font>
					<table class="table">
						<tr>
							<th style="text-align: center">Job Code</th>
							<th style="text-align: center">Job Description</th>
							<th style="text-align: center">Location</th>
							<th style="text-align: center">Company Name</th>
							<th style="text-align: center">Skills</th>
							<th style="text-align: center">Source</th>
							<th></th>
						</tr>
						<s:iterator value="jobpostings">
							<tr>
								<td style="text-align: center"><s:property value="jobCode" /></td>
								<td style="text-align: center"><s:property value="jobDesc" /></td>
								<td style="text-align: center"><s:property value="location" /></td>
								<td style="text-align: center"><s:property
										value="companyName" /></td>
								<td style="text-align: center"><s:property value="skills" /></td>
								<td style="text-align: center"><s:property value="source" /></td>
								<td style="text-align: center">
									<button class="btn btn-small btn-success" type="button">
										<i class="icon-ok"></i>Apply
									</button>
								</td>
							</tr>
						</s:iterator>
					</table>
				</s:if>
			</div>

		</div>
	</div>

</body>
</html>